package com.zzld.modules.autoinn.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelTarget;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;

@ExcelTarget("recharge")
@Table(name="zzld_autoinn_recharge")
public class Recharge implements java.io.Serializable{

	@Id
	private String id;
	@Excel(name="用户昵称")
	@Transient
	private String nickname;
	
	@Excel(name="会员等级",replace = { "普通会员_0", "青铜会员_1","白银会员_2","黄金会员_3","白金会员_4","钻石会员_5"},mergeVertical = true )
	@Transient
	private int level;
	
	@Excel(name="微信号码",width=20)
	@Column(name="wx_account")
	private String wx_account;
	
	@Excel(name="充值金额")
	private BigDecimal price;
	@Excel(name="备注",width= 50)
	private String des;
	@Excel(name="充值时间",width=30)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh" , timezone="GMT+8")  
	private Date innertime;
	
	
	
	@Column(name="customer_id")
	private String customer_id;
	
	@Transient
	private  double surplus;
	
	public double getSurplus(){
		return surplus;
	}
	public void setSurplus(double surplus){
		this.surplus=surplus;
	}
	
	@JSONField
	
   
	public String getNickname(){
		return nickname;
	}
	public void setNickname(String nickname){
		this.nickname=nickname;
	}
	
	public int getLevel(){
		return level;
	}
	public void setLevel(int level){
		this.level=level;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public String getDes() {
		return des;
	}

	public void setDes(String des) {
		this.des = des;
	}

	public Date getInnertime() {
		return innertime;
	}

	public void setInnertime(Date innertime) {
		this.innertime = innertime;
	}

	
	public String getCustomer_id() {
		return customer_id;
	}
	public void setCustomer_id(String customer_id) {
		this.customer_id = customer_id;
	}
	public String getWx_account() {
		return wx_account;
	}

	public void setWx_account(String wx_account) {
		this.wx_account = wx_account;
	}
	
	
	
	
}
